package com.cedric.yixianpai.server.Utils;

import java.util.ArrayList;
import java.util.List;

public class BestResult {
    int countWin;
    List<GameResult> gameResultList;
    List<List<CardVo>> nestedVoList;

    public BestResult() {
        this.countWin = 0;
        gameResultList = new ArrayList<>();
        nestedVoList = new ArrayList<>();
    }

    public int getCountWin() {
        return countWin;
    }

    public void setCountWin(int countWin) {
        this.countWin = countWin;
    }

    public List<GameResult> getGameResultList() {
        return gameResultList;
    }

    public void setGameResultList(List<GameResult> gameResultList) {
        this.gameResultList = gameResultList;
    }

    public List<List<CardVo>> getNestedVoList() {
        return nestedVoList;
    }

    public void setNestedVoList(List<List<CardVo>> nestedVoList) {
        this.nestedVoList = nestedVoList;
    }

    public void addWin(GameResult gameResult, List<CardVo> cardVos) {
        countWin += 1;
        this.gameResultList.add(gameResult);
        this.nestedVoList.add(cardVos);
    }
}
